# ftp://ftp.osuosl.org/pub/slackware/slackware${DSUFFIX}-${DISTRO_COMPAT_VERSION}/ChangeLog.txt
#
# must source DISTRO_SPECS first..
#
# mirrors: http://salixos.org/mirmon.html
#

if [ "$DISTRO_COMPAT_VERSION" = "" ] ; then
	[ -f ./DISTRO_SPECS ] && . ./DISTRO_SPECS
fi

case "$DISTRO_TARGETARCH" in
	x86)    DBIN_ARCH=i486               ;;
	x86_64) DBIN_ARCH=x86_64 ; DSUFFIX=64 ;;
esac

#----------------------
#PKG_DOCS_DISTRO_COMPAT - where to download the compat-distro pkgs databases from
#---------------------
# 1|2|3
#   1 - domain. for testing the url.
#   2 - full URI of the database file.
#   3 - name of db file when local and after being processed into standard format

PKG_DOCS_DISTRO_COMPAT="
z|http://ftp.nluug.nl/pub/os/Linux/distr/salix/${DBIN_ARCH}/slackware-${DISTRO_COMPAT_VERSION}/PACKAGES.TXT|Packages-slackware${DSUFFIX}-${DISTRO_COMPAT_VERSION}-official
z|http://ftp.nluug.nl/pub/os/Linux/distr/salix/${DBIN_ARCH}/${DISTRO_COMPAT_VERSION}/PACKAGES.TXT|Packages-slackware${DSUFFIX}-${DISTRO_COMPAT_VERSION}-salix
z|http://repository.slacky.eu/slackware${DSUFFIX}-${DISTRO_COMPAT_VERSION}/PACKAGES.TXT|Packages-slackware${DSUFFIX}-${DISTRO_COMPAT_VERSION}-slacky
"

#-------------------
#REPOS_DISTRO_COMPAT - hardcode the compat-distro repos in here...
#-------------------
# 1|2|3
#   1 - domain. for testing the url.
#   2 - full URI of the repo
#   3 - name of db-file(s) associated with that repo. it may have glob wildcards.

REPOS_DISTRO_COMPAT="
z|http://ftp.nluug.nl/pub/os/Linux/distr/salix/${DBIN_ARCH}/slackware-${DISTRO_COMPAT_VERSION}|Packages-slackware${DSUFFIX}-${DISTRO_COMPAT_VERSION}-official
z|http://ftp.nluug.nl/pub/os/Linux/distr/salix/${DBIN_ARCH}/${DISTRO_COMPAT_VERSION}|Packages-slackware${DSUFFIX}-${DISTRO_COMPAT_VERSION}-salix
z|http://slackware.uk/salix/${DBIN_ARCH}/slackware-${DISTRO_COMPAT_VERSION}|Packages-slackware${DSUFFIX}-${DISTRO_COMPAT_VERSION}-official
z|http://slackware.uk/salix/${DBIN_ARCH}/${DISTRO_COMPAT_VERSION}|Packages-slackware${DSUFFIX}-${DISTRO_COMPAT_VERSION}-salix
z|http://www.gtlib.gatech.edu/pub/salixos/${DBIN_ARCH}/slackware-${DISTRO_COMPAT_VERSION}|Packages-slackware${DSUFFIX}-${DISTRO_COMPAT_VERSION}-official
z|http://www.gtlib.gatech.edu/pub/salixos/${DBIN_ARCH}/${DISTRO_COMPAT_VERSION}|Packages-slackware${DSUFFIX}-${DISTRO_COMPAT_VERSION}-salix
z|http://mirror.aarnet.edu.au/pub/slackware/slackware${DSUFFIX}-${DISTRO_COMPAT_VERSION}|Packages-slackware${DSUFFIX}-${DISTRO_COMPAT_VERSION}-official
z|http://slackware.cs.utah.edu/pub/slackware/slackware${DSUFFIX}-${DISTRO_COMPAT_VERSION}|Packages-slackware${DSUFFIX}-${DISTRO_COMPAT_VERSION}-official
z|http://slackware.mirrors.tds.net/pub/slackware/slackware${DSUFFIX}-${DISTRO_COMPAT_VERSION}|Packages-slackware${DSUFFIX}-${DISTRO_COMPAT_VERSION}-official
z|http://ftp.gwdg.de/pub/linux/slackware/slackware${DSUFFIX}-${DISTRO_COMPAT_VERSION}|Packages-slackware${DSUFFIX}-${DISTRO_COMPAT_VERSION}-official
z|http://ftp.isu.edu.tw/pub/Linux/Slackware/slackware${DSUFFIX}-${DISTRO_COMPAT_VERSION}|Packages-slackware${DSUFFIX}-${DISTRO_COMPAT_VERSION}-official
z|http://repository.slacky.eu/slackware${DSUFFIX}-${DISTRO_COMPAT_VERSION}|Packages-slackware${DSUFFIX}-${DISTRO_COMPAT_VERSION}-slacky
z|http://slackware.uk/slackware${DSUFFIX}-${DISTRO_COMPAT_VERSION}|Packages-slackware${DSUFFIX}-${DISTRO_COMPAT_VERSION}-slacky
"


#---------------
# fix variables
#---------------
PKG_DOCS_DISTRO_COMPAT="$(echo $PKG_DOCS_DISTRO_COMPAT)"
REPOS_DISTRO_COMPAT="$(echo $REPOS_DISTRO_COMPAT)"

